<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleanf.org">
<head>
    <meta charset="UTF-8">
    <title>添加商品</title>
</head>
<body>
<form action="add" method="post">
    名称：<input type="text" name="title"><br>
    状态：
            <select name="state">
            <option value="1">上架</option>
            <option value="2">下架</option>
            </select>
            <br>
    类型:
    <select name="typeId" >
        <option th:each="t:${tlist}" th:value="${t.id}" th:text="${t.name}"></option>
    </select>
    <br>
    <input type="submit" value="提交">
</form >

</body>
</html>